;(function(root, factory){
    if (typeof exports === "object") {
        // CommonJS
        module.exports = exports = factory();
    }
    else if (typeof define === "function" && define.amd) {
        // AMD
        define([], factory);
    }
    else {
        // Global (browser)    
        root.execfunc = factory();
    }
})(this, function(){
    return function(func, input, config){
        var output = func(input, config);
        return JSON.stringify({output: output, config: config});   
    }
})